package com.hx.entity;

import org.hibernate.annotations.SQLDelete;
import org.springframework.stereotype.Controller;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.List;
import java.util.Set;
@Controller
@Entity(name = "regions")
public class Regions {
/*    @Id
    @Column(name = "region_id")*/
    private Integer regionId;

    private String regionName;
    private Set<Countries> countries;


    public Set<Countries> getCountries() {
        return countries;
    }

    public void setCountries(Set<Countries> countries) {
        this.countries = countries;
    }

    @Override
    public String toString() {
        return "Regions{" +
                "regionId=" + regionId +
                ", regionName='" + regionName + '\'' +
                '}';
    }

    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }
}
